<?php
    $sa = $_GET["sa"];
    $id = $_GET["id"];
    $mys = new mysqli("localhost","root","root","zol3c");
    if($mys->connect_errno != 0){
        die();
    }
    $res = $mys->query("select * from ${sa} where id=${id}");
    print_r(json_encode($res->fetch_assoc()));
?>
